#! /usr/bin/python3
# coding=utf-8
# @time: 2025/10/16 14:39
# @Author:鹤川
# conftest.py
import pytest
from pages.loginPage import LoginPage
from pages.msgPage import MsgPage
def pytest_collection_modifyitems(config, items):
    """
    处理测试项，确保中文字符正确显示
    """
    for item in items:
        # 对测试名称和节点ID进行编码处理
        item.name = item.name.encode('utf-8').decode('unicode_escape')
        item._nodeid = item.nodeid.encode('utf-8').decode('unicode_escape')
















